/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import java.util.*;
/**
 *
 * @author SERGIO MOLINA
 */
public class Wrapper2 implements WordSet{
    LinkedList<Word> lista;
    public Wrapper2(){
        lista=new LinkedList<Word>();
    }
	@Override
	public void add(Word wordObject) {
		lista.add(wordObject);
	}

	@Override
	public Word get(Word word) {
            int index=lista.indexOf(word);
            if(index==-1)
                return null;
            else
                return lista.get(index);
	}
}
